package com.plat.mapper.user;

import com.plat.mapper.AbstractBuilder;
import org.apache.ibatis.jdbc.SQL;

/**
 * @author carter
 * create time    2018-08-18
 */
public class UserBuilder extends AbstractBuilder<UserEntity> {
    @Override
    public void buildSelectOther(SQL sql) {
        sql.SELECT("T2.db_location");
        sql.SELECT("T2.table_name");
    }

    @Override
    public void buildJoin(SQL sql) {
        sql.JOIN("fsm_rout T2 on _this.id = T2.id");
    }

    @Override
    public void buildWhere(SQL sql, UserEntity param) {
        eq(sql,"sex_enum", "sexEnum",param.getSexEnum());
    }
}
